<script>
var resume="<%#resume%>";
var pause="<%#pause%>";
var abort="<%#abort%>";
var resumewfwitherros="<%#resumewfwitherros%>";
</script>
<table class='toolbartable' border='0' width='100%'>
	<tr width='100%' height='100%'>
		<td>
			<table>
				<tr>
					<td>
					&nbsp;<span class='toolbartitleheading'>Zoom </span>
					<select name='zoom' class='toolbarselect' onchange='document.forms[0].submit()'>"+
					<%#zoomlist%>
					</select>
					</td>
					<td>
						<div id="controlimages"></div>
					</td>
				</tr>
			</table>
		</td>
		<td align='right'><span class='toolbartitleheading'>Application : </span><span class='toolbartitle'><%#application%></span>&nbsp;
			<span class='toolbartitleheading'>Workflow : </span><span class='toolbartitle'><%#workflow%></span>&nbsp;
			<!--<span class='toolbartitleheading'>Execution ID : </span><span class='toolbartitle'><%#executionid%></span>&nbsp;-->
		</td>
	</tr>
	<tr>
		<td colspan='2'>
		<font color='red'><%#error%></font>
		</td>
	</tr>
</table>
<script>
var html="";
if(resume=="true")
{
	html=html+"<a href='#' onclick=javascript:ControlWorkflow('start','?application=<%#application%>&executionid=<%#executionid%>&zoom=<%#zoomfactor%>&action=<%#selectedaction%>&utcOffSet=<%#utcOffSet%>&LastUpdatedDateTimeTicks=<%#LastUpdatedDateTimeTicks%>')><img src='<%#VirtualDirectory%>/images/play-enabled.jpg' border='0' alt='Resume'></a > &nbsp;";
}else
{
	html=html+"<img src='<%#VirtualDirectory%>/images/play-disabled.jpg' border='0' alt='Resume'> &nbsp;";
}
if(pause=="true")
{
	html=html+"<a href='#' onclick=javascript:ControlWorkflow('pause','?application=<%#application%>&executionid=<%#executionid%>&zoom=<%#zoomfactor%>&action=<%#selectedaction%>&utcOffSet=<%#utcOffSet%>&LastUpdatedDateTimeTicks=<%#LastUpdatedDateTimeTicks%>')><img src='<%#VirtualDirectory%>/images/pause-enabled.jpg' border='0' alt='Pause'></a> &nbsp;";
}else
{
	html=html+"<img src='<%#VirtualDirectory%>/images/pause-disabled.jpg' border='0' alt='Pause'> &nbsp;";
}
if(abort=="true")
{
	html=html+"<a href='#' onclick=javascript:ControlWorkflow('stop','?application=<%#application%>&executionid=<%#executionid%>&zoom=<%#zoomfactor%>&action=<%#selectedaction%>&utcOffSet=<%#utcOffSet%>&LastUpdatedDateTimeTicks=<%#LastUpdatedDateTimeTicks%>')><img src='<%#VirtualDirectory%>/images/stop-enabled.jpg' border='0' alt='Abort'></a> &nbsp;";
}else
{
	html=html+"<img src='<%#VirtualDirectory%>/images/stop-disabled.jpg' border='0' alt='Abort'> &nbsp;";
}
if(resumewfwitherros=="true")
{
	html=html+"<a href='#' onclick=javascript:ControlWorkflow('resumewfwitherros','?application=<%#application%>&executionid=<%#executionid%>&zoom=<%#zoomfactor%>&action=<%#selectedaction%>&utcOffSet=<%#utcOffSet%>&LastUpdatedDateTimeTicks=<%#LastUpdatedDateTimeTicks%>')><img src='<%#VirtualDirectory%>/images/resumewitherrors-enabled.gif' border='0' alt='Resume workflow which executed with errors'></a> &nbsp;";
}


html=html+"<a href='#' onclick=javascript:Refresh('?application=<%#application%>&executionid=<%#executionid%>&zoom=<%#zoomfactor%>&action=<%#selectedaction%>&utcOffSet=<%#utcOffSet%>&LastUpdatedDateTimeTicks=<%#LastUpdatedDateTimeTicks%>')><img src='<%#VirtualDirectory%>/images/refresh.jpg' border='0' alt='Refresh'></a> &nbsp;";
document.getElementsByTagName("div")["controlimages"].innerHTML=html;
</script>
